<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<p>首页</p>
<p th:text="${title}"></p>

<!--/*@thymesVar id="user" type="org.william.shiro.entity.SysUser"*/-->
<div th:if="${session.user==null}">
    <a th:href="@{/login}">登录</a>
</div>

<div shiro:haspermission="user:add">
    <a href="/user/add">增加</a>
</div>
<div shiro:hasPermission="user:edit">
    <a href="/user/edit">编辑</a>
</div>
</body>
</html>
